using System;
using System.Collections.Generic;
using System.Text;
using System.Web.Security;
using sbMembership.Library.Domain;
using sbMembership.Library.Presenters;
using sbMembership.Library.Presenters.ViewInterfaces;

namespace Tests.sbMembership.EditRole
{
    public class MockEditRoleView :IEditRoleView
    {

        #region IEditRoleView Members

        private string message;
        public string Message
        {
            set { message = value; }
            get { return message; }
        }

        private EditRolePresenter presenter;

        private string roletoEdit;
        public string RoleToEdit
        {
            get
            {
                return roletoEdit;
            }
            set
            {
                roletoEdit = value;
            }
        }

        private string[] usersInRole;
        public string[] UsersInRole
        {
            get { return usersInRole; }
            set { usersInRole = value; }
        }

        private MembershipUserCollection availableUsers; 
        public MembershipUserCollection AvailableUsers
        {
            get { return availableUsers; }
            set { availableUsers = value; }
        }

        public void AttachPresenter(EditRolePresenter presenter)
        {
            this.presenter = presenter;
        }

        #endregion
    }
}
